<?php


namespace BoojasrFramework\View\Extension;



use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;

class RouteExtension extends AbstractExtension
{
    public function getFunctions()
    {
        return [
            new TwigFunction('uurl', array($this, 'url')),
        ];
    }

    public function url(){
        return "http://www.baidu.com";
    }
}
